package com.ctshk.rpc.custom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ctshk.rpc.custom.entity.CustomizedTripScheduleFreeQuotePackage;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 团期销售团费套餐 Mapper 接口
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-01-20
 */
public interface CustomizedTripScheduleFreeQuotePackageMapper extends BaseMapper<CustomizedTripScheduleFreeQuotePackage> {

    /**
     * 清空套餐
     * @param scheduleId
     * @param userId
     */
    @Update("UPDATE t_customized_trip_schedule_free_quote_package \n" +
            "SET is_deleted = 1,modified_id = #{modified_id}\n" +
            "WHERE schedule_id = #{schedule_id}")
    Integer clearBySchedule(@Param("schedule_id") Long scheduleId, @Param("modified_id")Long userId);
}
